package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "自定义字段是否必填")
@Data
public class NecessaryFieldUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "模板Id")
    @NotNull(message = "模板Id不能为空")
    private Long companyAdditionalFieldsId;

    @ApiModelProperty(notes = "是否是必填")
    @NotNull(message = "是否是必填不能为空")
    private Boolean isNecessary;

    private String companyId;

}
